package com.tr.otel.guvenlik;

import java.io.IOException;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

import lombok.Data;

import com.tr.otel.Oturum;

@ManagedBean
@RequestScoped
@Data
public class GuvenlikDenetimi {

	@ManagedProperty(value="#{oturum}")
	private Oturum oturum;
	
	public void erisimKontrol() throws IOException{
		if (false)
			FacesContext.getCurrentInstance().getExternalContext()
            .redirect("giris.jsf");

	}
}
